{{! -------------------------------------------------------------------------- }}
{{! Copyright 2002-2023, OpenNebula Project, OpenNebula Systems                }}
{{!                                                                            }}
{{! Licensed under the Apache License, Version 2.0 (the "License"); you may    }}
{{! not use this file except in compliance with the License. You may obtain    }}
{{! a copy of the License at                                                   }}
{{!                                                                            }}
{{! http://www.apache.org/licenses/LICENSE-2.0                                 }}
{{!                                                                            }}
{{! Unless required by applicable law or agreed to in writing, software        }}
{{! distributed under the License is distributed on an "AS IS" BASIS,          }}
{{! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   }}
{{! See the License for the specific language governing permissions and        }}
{{! limitations under the License.                                             }}
{{! -------------------------------------------------------------------------- }}

<div id="{{dialogId}}" class="reveal large" data-reveal>
  <div class="row">
    <h3 class="subheader">{{tr "Clone Image"}}</h3>
  </div>
  <div class="confirm-resources-header"></div>
  <form id="{{dialogId}}Form" action="" class="custom creation">
    <div class="row">
      <div class="columns large-12">
        <label class="clone_one">{{tr "Name"}}</label>
        <label class="clone_several">
          {{tr "Several images are selected, please choose a prefix to name the new copies"}}
        </label>
        <input required type="text" name="image_clone_name"/>
      </div>
    </div>
    <div class="row">
      <div class="large-12 columns">
        {{#advancedSection (tr "Advanced Options") }}
        <div class="large-12 columns">
          <span>{{tr "You can select a different target datastore"}}</span>
          <br/>
          <br/>
        </div>
        {{{datastoreTableSelectHTML}}}
        {{/advancedSection}}
      </div>
    </div>
    <div class="form_buttons row">
      <button class="button radius right" id="image_clone_button" value="Image.clone">{{tr "Clone"}}</button>
    </div>
    <button class="close-button" data-close aria-label="{{tr "Close modal"}}" type="button">
      <span aria-hidden="true">&times;</span>
    </button>
  </form>
</div>
